package com.gagakuai.domain.dto;

import java.io.Serializable;
import java.sql.Timestamp;

public class LogErrorDTO implements Serializable {

    private Long id;

    private String username;

    private String description;

    private String method;

    private String params;

    private String browser;

    private String requestIp;

    private String address;

    private Timestamp createTime;

    public LogErrorDTO() {
    }

    public Long getId() {
        return this.id;
    }

    public String getUsername() {
        return this.username;
    }

    public String getDescription() {
        return this.description;
    }

    public String getMethod() {
        return this.method;
    }

    public String getParams() {
        return this.params;
    }

    public String getBrowser() {
        return this.browser;
    }

    public String getRequestIp() {
        return this.requestIp;
    }

    public String getAddress() {
        return this.address;
    }

    public Timestamp getCreateTime() {
        return this.createTime;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public void setParams(String params) {
        this.params = params;
    }

    public void setBrowser(String browser) {
        this.browser = browser;
    }

    public void setRequestIp(String requestIp) {
        this.requestIp = requestIp;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }


    protected boolean canEqual(final Object other) {
        return other instanceof LogErrorDTO;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object id = this.getId();
        result = result * PRIME + (id == null ? 43 : id.hashCode());
        final Object username = this.getUsername();
        result = result * PRIME + (username == null ? 43 : username.hashCode());
        final Object description = this.getDescription();
        result = result * PRIME + (description == null ? 43 : description.hashCode());
        final Object method = this.getMethod();
        result = result * PRIME + (method == null ? 43 : method.hashCode());
        final Object params = this.getParams();
        result = result * PRIME + (params == null ? 43 : params.hashCode());
        final Object browser = this.getBrowser();
        result = result * PRIME + (browser == null ? 43 : browser.hashCode());
        final Object requestIp = this.getRequestIp();
        result = result * PRIME + (requestIp == null ? 43 : requestIp.hashCode());
        final Object address = this.getAddress();
        result = result * PRIME + (address == null ? 43 : address.hashCode());
        final Object createTime = this.getCreateTime();
        result = result * PRIME + (createTime == null ? 43 : createTime.hashCode());
        return result;
    }

    public String toString() {
        return "LogErrorDTO(id=" + this.getId() + ", username=" + this.getUsername() + ", description=" + this.getDescription() + ", method=" + this.getMethod() + ", params=" + this.getParams() + ", browser=" + this.getBrowser() + ", requestIp=" + this.getRequestIp() + ", address=" + this.getAddress() + ", createTime=" + this.getCreateTime() + ")";
    }
}
